//
//  MineViewController.m
//  E_ChatRoom
//
//  Created by rimi1 on 15/6/26.
//  Copyright (c) 2015年 TJ. All rights reserved.
//

#import "MineViewController.h"

@interface MineViewController ()<UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, strong) UIImageView *headView;
@property (nonatomic, strong) UILabel *nickName;
@property (nonatomic, strong) UILabel *account;
@property (nonatomic, strong) UILabel *birthday;
@property (nonatomic, strong) UILabel *gender;

@property (nonatomic, strong) UITextView *signature;
@property (nonatomic, strong) UITextView *area;
@end

@implementation MineViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self initializeUserinterface];
    
    // 显示当前用户个人信息
    // 如何使用CoreData获取数据
    // 1.上下文【关联到数据】
    
    // 2.FetchRequest
    
    // 3.设置过滤和排序
    
    // 4.执行请求获取数据
}

- (void)getPersonalInfoData{
    
    
    
}

- (void)initializeUserinterface{
    
    
}
/**
 *  默认显示2 Section的数据
 */
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    
    return 2;
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    return 7;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    NSString *ID = @"cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ID];
    }
    return cell;
}
@end
